package persistencia.homes;

import java.util.List;

import persistencia.DBManager;

/**
 * Home Genérico abstracto
 */
abstract class GenericHome {

    public static List<? extends Object> listAll(final Class<? extends Object> clazz) {
        return DBManager.getInstance().getAll(clazz);
    }

    public static Object get(final Object obj) {
        return DBManager.getInstance().get(obj);
    }
    
    public static void  set(final Object obj) {
        DBManager.getInstance().set(obj);
    }
}
